﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DictionaryList.aspx.cs" Inherits="System_Dictionary_DictionaryList" MasterPageFile="~/MasterPage.master"
    Title="无标题页" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../resources/styles/style.css" type="text/css" rel="stylesheet" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table id="wsd_inputtable" width="100%">
        <tr>
            <td width="100%" class="tabletitle">
                <div class="wsd_inputtable">
                    <h3>
                        字典列表
                    </h3>
                    <div>
                        <table width="100%" style="text-align: center;">
                        <tr><font color=red >提示：为某字典条目中的内容添加与编辑</font></tr>
                            <tr>
                                <th>
                                    <asp:Literal ID="Literal1" runat="server" Text="字典条目" meta:resourcekey="Literal1Resource1"></asp:Literal>
                                </th>
                                <td>
                                    &nbsp;
                                </td>
                                <th>
                                    <asp:Literal ID="Literal3" runat="server" Text="条目内容" meta:resourcekey="Literal3Resource1"></asp:Literal>
                                </th>
                            </tr>
                            <tr>
                                <td > 
                                    <asp:ListBox ID="listDic" runat="server" Height="200px" OnSelectedIndexChanged="listDic_SelectedIndexChanged"
                                        Width="100%" AutoPostBack="True" meta:resourcekey="listDicResource1"></asp:ListBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:ListBox ID="listItem" runat="server" Height="200px" Width="100%" AutoPostBack="True"
                                        meta:resourcekey="listItemResource1" ValidationGroup="item"></asp:ListBox>
                                </td>
                            </tr>
                            
                        </table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
  
    <table id="wsd_inputtable">
        <tr>
            <td width="100%" class="tabletitle">
                <div class="wsd_inputtable">
                    <h3>
                        条目内容操作选项</h3>
                    <div style="  text-align:right">
                       <span  style="padding-right:15%;" >
                        <asp:Button ID="btnAdd" runat="server" Text="新增" CssClass="wsd_button2" ValidationGroup="dict"
                            OnClick="btnAdd_Click" meta:resourcekey="btnAddResource1" />
                        &nbsp;<asp:Button ID="btnEdit" runat="server" Text="编辑" CssClass="wsd_button2" ValidationGroup="item"
                            OnClick="btnEdit_Click" meta:resourcekey="btnEditResource1" />
                            </span>
                    </div>
                </div>
            </td>
        </tr>
    </table>
  
    <table id="wsd_inputtable">
        <tr>
            <td colspan="2" class="tabletitle"  >
                <div id="detail" runat="server"  >
                    <h3>
                         字典条目内容 </h3>
               
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:Literal ID="Literal5" runat="server" Text="条目名称" meta:resourcekey="Literal5Resource1"></asp:Literal>
                                    :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtName" runat="server" class="default" meta:resourcekey="txtNameResource1"></asp:TextBox>
                                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName"
                                        ErrorMessage="请填写条目名称" meta:resourcekey="RequiredFieldValidator1Resource1" ValidationGroup="detail"></asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:Literal ID="Literal6" runat="server" Text="条目代码" meta:resourcekey="Literal6Resource1"></asp:Literal>
                                    :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCode" runat="server" class="default"  meta:resourcekey="txtCodeResource1"></asp:TextBox>
                                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCode"
                                        ErrorMessage="请填写条目代码" meta:resourcekey="RequiredFieldValidator2Resource1" ValidationGroup="detail"></asp:RequiredFieldValidator>
                                </td>
                            </tr>                         
                            <tr>
                                <td>
                                    <asp:Literal meta:resourcekey="Literal9Resource" ID="Literal7" runat="server" Text="锁定" /> :
                                </td>
                                <td class="messageText">
                                    <asp:CheckBox ID="chkLock" runat="server" meta:resourcekey="chkLockResource1" />&nbsp;<asp:Literal
                                        ID="Literal10" runat="server" Text="一旦锁定将无法修改" meta:resourcekey="Literal10Resource"></asp:Literal>
                                </td>
                                <td>
                                    <asp:Literal meta:resourcekey="Literal8Resource" ID="Literal8" runat="server" Text="有效" /> :
                                </td>
                                <td>
                                    <asp:CheckBox ID="chkIsActive" runat="server" Checked="True" meta:resourcekey="chkIsActiveResource1" />
                                </td>
                            </tr>

                            <tr><td>继续添加:</td><td><asp:CheckBox CssClass="checkbox" ID="chkContinue" runat="server"   />
                        <asp:RequiredFieldValidator ID="validdict" runat="server" ControlToValidate="listDic"
                                        ErrorMessage="请选择为那个条目新增内容" ValidationGroup="dict" meta:resourcekey="validdictResource1"></asp:RequiredFieldValidator>
                                           <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="listItem"
                                        ErrorMessage="请选择所要编辑的内容" meta:resourcekey="validdictResource2" ValidationGroup="item"></asp:RequiredFieldValidator>
                             
                  
                                </td><td></td><td>
                             
                  
                        <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="wsd_button2" OnClick="btnSave_Click"
                            meta:resourcekey="btnSaveResource1" ValidationGroup="detail" />
                        <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="wsd_button2" CausesValidation="False"
                            meta:resourcekey="btnCancelResource1" OnClick="btnCancel_Click" />
                             
                  
                                </td></tr>
                        </table>
                      
                        &nbsp;
                                                     
                  
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
